import {everyday} from "@/api/everydayapi.js";

export let everydaystore={
    module:{

    },
    state:{
        arr:[]
    },
    getters:{

    },
    mutations:{
        geteveryday(state,payload){
            state.arr=payload
            // console.log(state.arr)
        }
    },
    actions:{
        sends(store){
            everyday("/api/xiaomipro/goods/everyday2").then((ok)=>{  
                //  console.log(arr)
                store.commit("geteveryday",ok.data.everyday)
            })
        }
    },
}